package com.jari.lg.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class GuideHisExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GuideHisExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andGuideidIsNull() {
            addCriterion("guideid is null");
            return (Criteria) this;
        }

        public Criteria andGuideidIsNotNull() {
            addCriterion("guideid is not null");
            return (Criteria) this;
        }

        public Criteria andGuideidEqualTo(String value) {
            addCriterion("guideid =", value, "guideid");
            return (Criteria) this;
        }

        public Criteria andGuideidNotEqualTo(String value) {
            addCriterion("guideid <>", value, "guideid");
            return (Criteria) this;
        }

        public Criteria andGuideidGreaterThan(String value) {
            addCriterion("guideid >", value, "guideid");
            return (Criteria) this;
        }

        public Criteria andGuideidGreaterThanOrEqualTo(String value) {
            addCriterion("guideid >=", value, "guideid");
            return (Criteria) this;
        }

        public Criteria andGuideidLessThan(String value) {
            addCriterion("guideid <", value, "guideid");
            return (Criteria) this;
        }

        public Criteria andGuideidLessThanOrEqualTo(String value) {
            addCriterion("guideid <=", value, "guideid");
            return (Criteria) this;
        }

        public Criteria andGuideidLike(String value) {
            addCriterion("guideid like", value, "guideid");
            return (Criteria) this;
        }

        public Criteria andGuideidNotLike(String value) {
            addCriterion("guideid not like", value, "guideid");
            return (Criteria) this;
        }

        public Criteria andGuideidIn(List<String> values) {
            addCriterion("guideid in", values, "guideid");
            return (Criteria) this;
        }

        public Criteria andGuideidNotIn(List<String> values) {
            addCriterion("guideid not in", values, "guideid");
            return (Criteria) this;
        }

        public Criteria andGuideidBetween(String value1, String value2) {
            addCriterion("guideid between", value1, value2, "guideid");
            return (Criteria) this;
        }

        public Criteria andGuideidNotBetween(String value1, String value2) {
            addCriterion("guideid not between", value1, value2, "guideid");
            return (Criteria) this;
        }

        public Criteria andGuidenameIsNull() {
            addCriterion("guidename is null");
            return (Criteria) this;
        }

        public Criteria andGuidenameIsNotNull() {
            addCriterion("guidename is not null");
            return (Criteria) this;
        }

        public Criteria andGuidenameEqualTo(String value) {
            addCriterion("guidename =", value, "guidename");
            return (Criteria) this;
        }

        public Criteria andGuidenameNotEqualTo(String value) {
            addCriterion("guidename <>", value, "guidename");
            return (Criteria) this;
        }

        public Criteria andGuidenameGreaterThan(String value) {
            addCriterion("guidename >", value, "guidename");
            return (Criteria) this;
        }

        public Criteria andGuidenameGreaterThanOrEqualTo(String value) {
            addCriterion("guidename >=", value, "guidename");
            return (Criteria) this;
        }

        public Criteria andGuidenameLessThan(String value) {
            addCriterion("guidename <", value, "guidename");
            return (Criteria) this;
        }

        public Criteria andGuidenameLessThanOrEqualTo(String value) {
            addCriterion("guidename <=", value, "guidename");
            return (Criteria) this;
        }

        public Criteria andGuidenameLike(String value) {
            addCriterion("guidename like", value, "guidename");
            return (Criteria) this;
        }

        public Criteria andGuidenameNotLike(String value) {
            addCriterion("guidename not like", value, "guidename");
            return (Criteria) this;
        }

        public Criteria andGuidenameIn(List<String> values) {
            addCriterion("guidename in", values, "guidename");
            return (Criteria) this;
        }

        public Criteria andGuidenameNotIn(List<String> values) {
            addCriterion("guidename not in", values, "guidename");
            return (Criteria) this;
        }

        public Criteria andGuidenameBetween(String value1, String value2) {
            addCriterion("guidename between", value1, value2, "guidename");
            return (Criteria) this;
        }

        public Criteria andGuidenameNotBetween(String value1, String value2) {
            addCriterion("guidename not between", value1, value2, "guidename");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtypeIsNull() {
            addCriterion("guideprogramtype is null");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtypeIsNotNull() {
            addCriterion("guideprogramtype is not null");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtypeEqualTo(String value) {
            addCriterion("guideprogramtype =", value, "guideprogramtype");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtypeNotEqualTo(String value) {
            addCriterion("guideprogramtype <>", value, "guideprogramtype");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtypeGreaterThan(String value) {
            addCriterion("guideprogramtype >", value, "guideprogramtype");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtypeGreaterThanOrEqualTo(String value) {
            addCriterion("guideprogramtype >=", value, "guideprogramtype");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtypeLessThan(String value) {
            addCriterion("guideprogramtype <", value, "guideprogramtype");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtypeLessThanOrEqualTo(String value) {
            addCriterion("guideprogramtype <=", value, "guideprogramtype");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtypeLike(String value) {
            addCriterion("guideprogramtype like", value, "guideprogramtype");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtypeNotLike(String value) {
            addCriterion("guideprogramtype not like", value, "guideprogramtype");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtypeIn(List<String> values) {
            addCriterion("guideprogramtype in", values, "guideprogramtype");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtypeNotIn(List<String> values) {
            addCriterion("guideprogramtype not in", values, "guideprogramtype");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtypeBetween(String value1, String value2) {
            addCriterion("guideprogramtype between", value1, value2, "guideprogramtype");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtypeNotBetween(String value1, String value2) {
            addCriterion("guideprogramtype not between", value1, value2, "guideprogramtype");
            return (Criteria) this;
        }

        public Criteria andGuideprogramIsNull() {
            addCriterion("guideprogram is null");
            return (Criteria) this;
        }

        public Criteria andGuideprogramIsNotNull() {
            addCriterion("guideprogram is not null");
            return (Criteria) this;
        }

        public Criteria andGuideprogramEqualTo(String value) {
            addCriterion("guideprogram =", value, "guideprogram");
            return (Criteria) this;
        }

        public Criteria andGuideprogramNotEqualTo(String value) {
            addCriterion("guideprogram <>", value, "guideprogram");
            return (Criteria) this;
        }

        public Criteria andGuideprogramGreaterThan(String value) {
            addCriterion("guideprogram >", value, "guideprogram");
            return (Criteria) this;
        }

        public Criteria andGuideprogramGreaterThanOrEqualTo(String value) {
            addCriterion("guideprogram >=", value, "guideprogram");
            return (Criteria) this;
        }

        public Criteria andGuideprogramLessThan(String value) {
            addCriterion("guideprogram <", value, "guideprogram");
            return (Criteria) this;
        }

        public Criteria andGuideprogramLessThanOrEqualTo(String value) {
            addCriterion("guideprogram <=", value, "guideprogram");
            return (Criteria) this;
        }

        public Criteria andGuideprogramLike(String value) {
            addCriterion("guideprogram like", value, "guideprogram");
            return (Criteria) this;
        }

        public Criteria andGuideprogramNotLike(String value) {
            addCriterion("guideprogram not like", value, "guideprogram");
            return (Criteria) this;
        }

        public Criteria andGuideprogramIn(List<String> values) {
            addCriterion("guideprogram in", values, "guideprogram");
            return (Criteria) this;
        }

        public Criteria andGuideprogramNotIn(List<String> values) {
            addCriterion("guideprogram not in", values, "guideprogram");
            return (Criteria) this;
        }

        public Criteria andGuideprogramBetween(String value1, String value2) {
            addCriterion("guideprogram between", value1, value2, "guideprogram");
            return (Criteria) this;
        }

        public Criteria andGuideprogramNotBetween(String value1, String value2) {
            addCriterion("guideprogram not between", value1, value2, "guideprogram");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtimeIsNull() {
            addCriterion("guideprogramtime is null");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtimeIsNotNull() {
            addCriterion("guideprogramtime is not null");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtimeEqualTo(Integer value) {
            addCriterion("guideprogramtime =", value, "guideprogramtime");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtimeNotEqualTo(Integer value) {
            addCriterion("guideprogramtime <>", value, "guideprogramtime");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtimeGreaterThan(Integer value) {
            addCriterion("guideprogramtime >", value, "guideprogramtime");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("guideprogramtime >=", value, "guideprogramtime");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtimeLessThan(Integer value) {
            addCriterion("guideprogramtime <", value, "guideprogramtime");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtimeLessThanOrEqualTo(Integer value) {
            addCriterion("guideprogramtime <=", value, "guideprogramtime");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtimeIn(List<Integer> values) {
            addCriterion("guideprogramtime in", values, "guideprogramtime");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtimeNotIn(List<Integer> values) {
            addCriterion("guideprogramtime not in", values, "guideprogramtime");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtimeBetween(Integer value1, Integer value2) {
            addCriterion("guideprogramtime between", value1, value2, "guideprogramtime");
            return (Criteria) this;
        }

        public Criteria andGuideprogramtimeNotBetween(Integer value1, Integer value2) {
            addCriterion("guideprogramtime not between", value1, value2, "guideprogramtime");
            return (Criteria) this;
        }

        public Criteria andDatetimeIsNull() {
            addCriterion("datetime is null");
            return (Criteria) this;
        }

        public Criteria andDatetimeIsNotNull() {
            addCriterion("datetime is not null");
            return (Criteria) this;
        }

        public Criteria andDatetimeEqualTo(Date value) {
            addCriterion("datetime =", value, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatetimeNotEqualTo(Date value) {
            addCriterion("datetime <>", value, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatetimeGreaterThan(Date value) {
            addCriterion("datetime >", value, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("datetime >=", value, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatetimeLessThan(Date value) {
            addCriterion("datetime <", value, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatetimeLessThanOrEqualTo(Date value) {
            addCriterion("datetime <=", value, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatetimeIn(List<Date> values) {
            addCriterion("datetime in", values, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatetimeNotIn(List<Date> values) {
            addCriterion("datetime not in", values, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatetimeBetween(Date value1, Date value2) {
            addCriterion("datetime between", value1, value2, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatetimeNotBetween(Date value1, Date value2) {
            addCriterion("datetime not between", value1, value2, "datetime");
            return (Criteria) this;
        }

        public Criteria andGuidetypeIsNull() {
            addCriterion("guidetype is null");
            return (Criteria) this;
        }

        public Criteria andGuidetypeIsNotNull() {
            addCriterion("guidetype is not null");
            return (Criteria) this;
        }

        public Criteria andGuidetypeEqualTo(String value) {
            addCriterion("guidetype =", value, "guidetype");
            return (Criteria) this;
        }

        public Criteria andGuidetypeNotEqualTo(String value) {
            addCriterion("guidetype <>", value, "guidetype");
            return (Criteria) this;
        }

        public Criteria andGuidetypeGreaterThan(String value) {
            addCriterion("guidetype >", value, "guidetype");
            return (Criteria) this;
        }

        public Criteria andGuidetypeGreaterThanOrEqualTo(String value) {
            addCriterion("guidetype >=", value, "guidetype");
            return (Criteria) this;
        }

        public Criteria andGuidetypeLessThan(String value) {
            addCriterion("guidetype <", value, "guidetype");
            return (Criteria) this;
        }

        public Criteria andGuidetypeLessThanOrEqualTo(String value) {
            addCriterion("guidetype <=", value, "guidetype");
            return (Criteria) this;
        }

        public Criteria andGuidetypeLike(String value) {
            addCriterion("guidetype like", value, "guidetype");
            return (Criteria) this;
        }

        public Criteria andGuidetypeNotLike(String value) {
            addCriterion("guidetype not like", value, "guidetype");
            return (Criteria) this;
        }

        public Criteria andGuidetypeIn(List<String> values) {
            addCriterion("guidetype in", values, "guidetype");
            return (Criteria) this;
        }

        public Criteria andGuidetypeNotIn(List<String> values) {
            addCriterion("guidetype not in", values, "guidetype");
            return (Criteria) this;
        }

        public Criteria andGuidetypeBetween(String value1, String value2) {
            addCriterion("guidetype between", value1, value2, "guidetype");
            return (Criteria) this;
        }

        public Criteria andGuidetypeNotBetween(String value1, String value2) {
            addCriterion("guidetype not between", value1, value2, "guidetype");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}